package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 店铺信息 DO
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_shop")
public class ShopDo extends Model<ShopDo> {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 店铺名称
     */
    @TableField("shop_name")
    private String shopName;

    /**
     * 所属平台(来自码表;平台)
     */
    @TableField("platform_id")
    private Long platformId;

    /**
     * 店铺联系人
     */
    @TableField("shop_contact_name")
    private String shopContactName;

    /**
     * 店铺联系人电话
     */
    @TableField("shop_contact_tel")
    private String shopContactTel;

    /**
     * 店铺联系人邮箱
     */
    @TableField("shop_contact_email")
    private String shopContactEmail;

    @TableField("company_id")
    private Long companyId;

    @TableField("rakuten_secret")
    private String rakutenSecret;

    @TableField("rakuten_license")
    private String rakutenLicense;

    /**
     * Amazon 卖家ID
     */
    @TableField("amazon_seller_id")
    private String amazonSellerId;

    @TableField("amazon_token")
    private String amazonToken;

    @TableField("amz_sp_client_id")
    private String amzSpClientId;

    @TableField("amz_sp_client_secret")
    private String amzSpClientSecret;

    /**
     * 店铺授权码
     */
    @TableField("amz_sp_lwa")
    private String amzSpLwa;

    @TableField("yahoo_seller_id")
    private String yahooSellerId;

    @TableField("yahoo_refresh_token")
    private String yahooRefreshToken;

    /**
     * 离岛地区是否自动确认订单
     */
    @TableField("atuo_confirm_order_island_flag")
    private Boolean autoConfirmOrderIslandFlag;

    /**
     * 是否自动确认订单
     */
    @TableField("atuo_confirm_order_flag")
    private Boolean autoConfirmOrderFlag;

    /**
     * api自动导出订单
     */
    @TableField("atuo_send_out_flag")
    private Boolean autoSendOutFlag;

    @TableField("create_by")
    private Long createBy;

    @TableField("create_time")
    private Date createTime;

    @TableField("update_by")
    private Long updateBy;

    @TableField("update_time")
    private Date updateTime;

    @TableField("delete_time")
    private Date deleteTime;

    @TableField("delete_by")
    private Long deleteBy;

    @TableField("delete_flag")
    private Integer deleteFlag;

    @TableField("qooten_pwd")
    private String qootenPwd;

    @TableField("qooten_id")
    private String qootenId;

    @TableField("qooten_key")
    private String qootenKey;

    /**
     * 店铺备注
     */
    @TableField("tips")
    private String tips;

    /**
     * 市场id
     */
    @TableField("market_id")
    private Long marketId;

    /**
     * 到期时间
     */
    @TableField("expiration_time")
    private Date expirationTime;

    /**
     * 店铺授权状态
     */
    @TableField("shop_authorize_state")
    private Long shopAuthorizeState;

    /**
     * shopify秘钥
     */
    @TableField("shopify_secret")
    private String shopifySecret;

    /**
     * shopify key
     */
    @TableField("shopify_key")
    private String shopifyKey;

    /**
     * shopify token
     */
    @TableField("shopify_token")
    private String shopifyToken;

    @TableField("shopify_host")
    private String shopifyHost;

    @TableField("qianyi_access_id")
    private String qianyiAccessId;

    @TableField("qianyi_secret_key")
    private String qianyiSecretKey;

    /**
     * 密钥状态 0 过期 1有效
     */
    @TableField("key_status")
    private Integer keyStatus;

    @TableField("qianyi_shop_name")
    private String qianyiShopName;

    /**
     * 易仓对接接口地址
     */
    @TableField("ec_url")
    private String ecUrl;

    /**
     * 易仓 serviceCode
     */
    @TableField("ec_code")
    private String ecCode;

    /**
     * 易仓 serviceToken
     */
    @TableField("ec_token")
    private String ecToken;

    /**
     * 易仓 userName
     */
    @TableField("ec_username")
    private String ecUsername;

    /**
     * 易仓 userPass
     */
    @TableField("ec_userpass")
    private String ecUserpass;
}

